/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commonClasses;

/**
 *
 * @author MGL
 */

public class Utils {

    public static void write(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println(s);
    }

    public static void hostReceived(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("H <- " + s);
    }

    public static void clientReceived(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("C <- " + s);
    }

    public static void hostSend(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("H -> " + s);
    }

    public static void clientSend(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("C -> " + s);
    }

    public static void write(long s) {
        if(MagicNumbers.SHOW_TIME) System.out.println(s);
    }

    public static void hostReceived(long s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("H <- " + s);
    }

    public static void clientReceived(long s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("C <- " + s);
    }

    public static void received(long s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("X <- " + s);
    }

    public static void received(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("X <- " + s);
    }

    public static void sent(long s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("X -> " + s);
    }

    public static void sent(String s) {
        if(MagicNumbers.SHOW_TIME) System.out.println("X -> " + s);
    }
}
